from rest_framework.urls import url
from . import views

urlpatterns = [
    url(r'^categories/$', views.NewsCategoryView.as_view()),
    url(r'^categories/(?P<category_id>\d+)/news/$', views.NewsListView.as_view()),

    url(r'^news/(?P<news_id>\d+)/$', views.NewsView.as_view()),
    url(r'^news_comments/(?P<news_id>\d+)/$', views.NewsCommentsView.as_view()),
    url(r'^user_top_news/(?P<news_id>\d+)/$', views.UserTopNewsView.as_view()),
    url(r'^top_news/$', views.TopNewsView.as_view()),

]
